package com.ylp.sys.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ylp
 * @since 2024-07-17
 */
@TableName("generator_datasource")
@Schema(name = "GeneratorDatasource", description = "")
public class GeneratorDatasource implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "数据源类型（0：mysql, 1：sqlserver)")
    private Integer type;

    @Schema(description = "数据库地址ip")
    private String ip;

    @Schema(description = "数据库名称")
    private String dbName;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "GeneratorDatasource{" +
            "id = " + id +
            ", type = " + type +
            ", ip = " + ip +
            ", dbName = " + dbName +
            ", username = " + username +
            ", password = " + password +
        "}";
    }
}
